﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tomahawk.Runtime;
using Archetypes.Logic;
using Tomahawk.Runtime.Logic;

namespace Initialization.GameStates
{
    class BasicGameState : GameState
    {
        protected override void OnLoad()
        {
            Engine.Instance.ResourceManager.LoadPendantResources(this.ContentManager);
        }

        protected override void OnUnload()
        {
        }

        protected override void OnInitialize()
        {
            //Here, we create all the root logic objects required in our game
            //(Review Match.OnInitialize for more)
            Match match = (Match)XWorld.Instance.CreateObject(typeof(Match), "Match", "Examples.Archetypes.Content\\Match.xml");
        }

        protected override void OnDestroy()
        {
        }
    }
}
